<template>
  <t-card :title="$t('pages.dashboardBase.hot.title')" :bordered="false">
    <div class="chart-container">
      <t-table :data="data" :columns="HOT_COLUMNS" row-key="id">
        <template #index="{ rowIndex }">{{ rowIndex + 1 }}</template>
      </t-table>
    </div>
  </t-card>
</template>

<script lang="ts" setup>
import { HOT_COLUMNS } from '../constants';

defineProps({
  data: {
    type: Array,
    default: () => [],
  },
});
</script>

<style lang="less" scoped>
.chart-container {
  height: 326px;
}
.t-card {
  :deep(.t-card__body) {
    padding-top: 0;
  }
}
</style>
